﻿using System;
using System.Collections.Generic;

namespace NewsSystem.Models
{
    public class Comment
    {
        private ICollection<Comment> comments;

        public Comment()
        {
            this.comments = new HashSet<Comment>();
        }

        public int Id { get; set; }

        public string Content { get; set; }

        public DateTime CreationDate { get; set; }

        public virtual User Author { get; set; }

        public virtual ICollection<Comment> Comments
        {
            get
            {
                return this.comments;
            }
            set
            {
                this.comments = value;
            }
        }
    }
}